using System;
using System.Reflection;
using System.Windows.Forms;
using SiMsn.Clients;
using Sunisoft.IrisSkin;

namespace SiMsn
{
    internal class MockRandom:Random
    {
        public override int Next(int maxValue)
        {
            return 1;
        }
    }

    class Program
    { /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            var fieldInfo0 = typeof(SkinEngine).GetField("random", BindingFlags.NonPublic | BindingFlags.Static);
            fieldInfo0.SetValue(null, 0x350);

            var fieldInfo1 = typeof(SkinEngine).GetField("ram", BindingFlags.NonPublic | BindingFlags.Static);
            fieldInfo1.SetValue(null, new MockRandom());

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ClientForm());
        }
    }
}
